import { EnumRoutePath, EnumRouteTitle } from '@/enum'
import { CustomRoute } from '@/interface'
import { BasicLayout } from '@/layouts'
import { RouteNameMap } from '../helpers'
import ROUTE_HOME from '../routes/routeHome'

const ROOT: CustomRoute = {
  name: RouteNameMap.get('root'),
  path: EnumRoutePath.root,
  component: BasicLayout,
  redirect: {
    name: ROUTE_HOME.name,
  },
  meta: {
    title: EnumRouteTitle.root,
    notMenu: true,
  },
  children: [],
}

export default ROOT
